package com.hksj.Intelligentmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.Intelligentmanagement.dto.DeviceDTO;
import com.hksj.Intelligentmanagement.entity.DeviceEntity;
import com.hksj.Intelligentmanagement.vo.DeviceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository //加上此注解当注入DeviceMapper时不会报错
public interface DeviceMapper extends BaseMapper<DeviceEntity> {

    List<DeviceVo> queryDeviceListByPage(IPage<DeviceVo> page, @Param("deviceDTO") DeviceDTO deviceDTO);

}
